package myschool.dao;

import myschool.entity.Grade;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface GradeDao {
    public int add(Grade g);
    public int update(Grade g);
    public int del(int id);

    public Grade get(long id);
    public List<Grade> paging(@Param("pageNo") int pageNo, @Param("size") int pageSize);
    public List<Grade> search(String sname);
    public List<Grade> findAll();
}
